import Main from '../pages/main/Main'
import BlogTypeSetting from '../pages/blogManage/BlogTypeSetting'
import BlogEditing from '../pages/blogManage/BlogEditing'
import BlogManage from '../pages/blogManage/BlogManage'

export default [
  {
    path: '/',
    redirect: '/admin'
  },
  {
    path: '/admin',
    name: 'main',
    meta: {
      title: '博客后台管理系统'
    },
    component: Main,
    children: [
      {
        path: '/blogTypeSetting',
        name: 'blogTypeSetting',
        meta: {
          title: '博客类型设置'
        },
        component: BlogTypeSetting
      },
      {
        path: '/blogWriting',
        name: 'blogWriting',
        meta: {
          title: '写博客'
        },
        component: BlogEditing
      },
      {
        path: '/blogManage',
        name: 'blogManage',
        meta: {
          title: '博客管理'
        },
        component: BlogManage
      }
    ]
  }
]
